﻿<UserControl 
	x:Class="Sidvall.UI.Wpf.Controls.BusyIndicatorControl"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:local="clr-namespace:Sidvall.UI.Wpf.Controls" 
	mc:Ignorable="d" 
	d:DesignHeight="50" d:DesignWidth="200">

	<Border Width="260" Height="120" CornerRadius="12" HorizontalAlignment="Center" VerticalAlignment="Center">
		<Border.Background>
			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" >
				<GradientStop Color="#FF4B4B4B" Offset="0.897"/>
				<GradientStop Color="#FF6E6E6E" Offset="1"/>
				<GradientStop Color="#FF4B4B4B" Offset="0.103"/>
				<GradientStop Color="#FF6E6E6E" Offset="0"/>
			</LinearGradientBrush>
		</Border.Background>
		<TextBlock FontSize="24" Foreground="White" 
			Text="{Binding HeaderCaption, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:BusyIndicatorControl}}}"
			 HorizontalAlignment="Center" VerticalAlignment="Center"/>
	</Border>
</UserControl>
